home *** CD-ROM | disk | FTP | other *** search
/ How Many Bugs in a Box / How Many Bugs in a Box.cdr / bugs / act7 / 00021.ls < prev    next >
Encoding:
Text File  |  1995-03-28  |  582 b   |  26 lines

  1. on exitFrame
  2.   global sndopen, mybugsound, animtimer, captivechannel, grabcur, reachcur
  3.   cursor([grabcur, grabcur + 1])
  4.   repeat while the mouseDown
  5.     if the timer > animtimer then
  6.       animateall()
  7.       set animtimer to the timer + 3
  8.     end if
  9.     if the timer > 60 then
  10.       addbug()
  11.       startTimer()
  12.       set animtimer to 5
  13.     end if
  14.     updateStage()
  15.   end repeat
  16.   sound stop 2
  17.   releasebug()
  18.   if captivechannel > 0 then
  19.     if sprite captivechannel intersects 3 then
  20.       InTheCagePal()
  21.     end if
  22.   end if
  23.   go("gameloop")
  24.   cursor([reachcur, reachcur + 1])
  25. end
  26.